#ifndef GV_SETUPDATEDIALOG_H
#define GV_SETUPDATEDIALOG_H
#include<QtGui>
#include <QtGui/QWidget>
#include <QtCore/QTextCodec>
#include <QDialog>
#include "ui_setupdate.h"
class QTimer;
enum{
    DISPLAYMODEDMY=0,
    DISPLAYMODEMDY,
    DISPLAYMODEYDM,
    DATESTATUSYEAR,
    DATESTATUSMONTH,
    DATESTATUSDAY
};
class GV_SetupDateDialog:public QDialog, public Ui::SetupDateDialog
{
    Q_OBJECT
signals:
    void currentTime();
public:
    GV_SetupDateDialog(QWidget *parent = 0);

    QTimer *timer;
private slots:
    void GV_chTime();
    //void home();

    void cancel();
    void accept();

    void dateselect();
    void displaymodeselect();

    void setupyear();
    void setupmonth();
    void setupday();

    void decreasevalue();
    void increasevalue();

    void checkDMY();
    void checkMDY();
    void checkYDM();
private:
    int myyear;
    int mymonth;
    int myday;
    int datestatus;
    int mydisplaymode;
    void reloadtext();
};
#endif // GV_SETUPDATEDIALOG_H
